package com.ygqh.baby.service;

import java.util.Date;
import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgMobile;

public interface YgMobileService {

	List<YgMobile> find();

	int findCount();

	YgMobile findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgMobile ygMobile);

	int update(YgMobile ygMobile);

	int saveOrUpdate(YgMobile ygMobile);

	ResultSet<YgMobile> search(QueryInfo queryInfo, String q, Date startTime, Date endTime);

	/**
	 * 
	 * @param telPhone
	 * @param content
	 * @return
	 */
	int add(String telPhone, String content);

	int countByTime(Date startDate, Date endDate);

}
